<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDramaTypeInProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table('project')
            ->addColumn('drama_type', 'enum', ['values' => 'season,year', 'default' =>
                'year', 'null' => false, 'comment' => '番剧类型'])
            ->save();
    }

    public function down()
    {
        $this->table('project')
            ->removeColumn('drama_type')
            ->save();
    }
}
